import React from 'react';

const ErrorSection = ({ data }) => {
    return (
        <div className="response-section error-section">
            <div className="section-header">
                <span className="section-icon">
                    <svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2.5" strokeLinecap="round" strokeLinejoin="round">
                        <circle cx="12" cy="12" r="10"/>
                        <line x1="15" y1="9" x2="9" y2="15"/>
                        <line x1="9" y1="9" x2="15" y2="15"/>
                    </svg>
                </span>
                <span className="section-title">错误信息</span>
            </div>
            <div className="section-content">
                <div className="error-message">{data.data?.result}</div>
            </div>
        </div>
    );
};

export default ErrorSection;